﻿Ext.define('Examples.order.orderitem.view.Form', {
    extend: 'Happy.form.Panel',
    alias: 'widget.orderitem-form',
    requires: [
        'Happy.form.action.Close',
        'Happy.form.action.Save',
        'Happy.form.field.Checkbox',
        'Happy.form.field.CkEditor',
        'Happy.form.field.Combobox',
        'Happy.form.field.TreeCombobox',
        'Happy.form.CheckboxGroup',
        'Happy.form.ImageContainer',
        'Happy.form.LinkContainer'
    ],

    items: [{
        fieldLabel: 'Product',
        name: 'Product',
        allowBlank: false
    }],

    initComponent: function () {
        var me = this;

        me.buttons = Happy.createActions([
            { type: 'save', remoteSave: false },
            'close'
        ]);

        me.callParent(arguments);
    }
});